package com.czh.mock.exceptions.code;


public enum MockCodeEnum implements IErrorCodeEnum {
    INVALID_ARGUMENT(200010, "无效的参数"),
    FILE_CREATED_ERROR(200020, "文件创建失败"),
    FILE_WRITE_ERROR(200021, "文件写入失败"),
    FILE_EXISTS(200022, "文件已存在"),
    READ_DATA_CONFIG_FILE(200100, "读取数据配置文件失败"),
    ENCODE_JSON(201000, "序列化json失败"),
    ;

    private int code;
    private String message;

    MockCodeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.message;
    }
}
